package adv5;

import java.io.FileWriter;
import java.io.IOException;

/**
 * @author oldliu
 * @since 1.0
 */
public class ZifuWriter {
    public static void main(String[] args) {
        try {
            FileWriter fw=new FileWriter("d:/tmp/java86/花名册.txt",true);
            fw.write(21016);
            fw.write('老');
            fw.write('师');
            fw.write("\r\n");
            fw.write("是个好同志");
            for (int i = 0x4e00; i <=0x9fa5 ; i++) {
                fw.write(i);
            }
            fw.flush();
            fw.close();
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
